package com.chx.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Author cp-月入过万
 * @Date 2025/5/29
 * 权限
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Permissions implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("权限ID")
    //权限id，自增，主键
    private Long permissionId;

    @ApiModelProperty("权限名称")
    //权限名称，唯一
    private String permissionName;

    @ApiModelProperty("权限代码")
    //权限代码
    private String permissionCode;

    @ApiModelProperty("权限描述")
    //权限描述
    private String description;

    @ApiModelProperty("创建时间")
    //创建时间
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
